package com.zzk.www.service;


import com.zzk.www.domain.FriendVo;
import com.zzk.www.domain.MessageVo;
import com.zzk.www.domain.UserVo;
import io.netty.channel.Channel;


/**
 * 消息发送服务
 * Created by shengshan.tang on 2016/8/28.
 */
public interface MsgSendService {


    /**
     * 发送错误反馈消息
     * @param message
     * @param code
     */
    void sendFeedbackErrorMsg(Channel channel, String message, String code, String detailMsg);

    /**
     * 发成功反馈消息
     * @param message
     */
    void sendFeedbackSuccessMsg(Channel channel, String message, String code, String desMsg);

    /**
     * 发送及时消息到客户端
     * @param userVo
     * @param message
     * @param online
     */
    String sendMsg(Channel channel, UserVo userVo, String message, boolean online);

    /**
     * 客户端触发发送消息
     * @param msgBean
     * @param message
     */
    void doSendMsg(Channel channel, MessageVo msgBean, String message);

    /**
     * 发送好友通讯录增量同步消息到客户端
     * @param userVo
     * @param message
     * @param online
     */
    void sendFriendSyncMsg(Channel channel, UserVo userVo, String message, boolean online);

    /**
     * 触发发送好友通讯录增量同步消息
     * @param friendVo
     * @param message
     */
    void doSendFriendSyncMsg(FriendVo friendVo, String message);
}
